<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>hello</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<h1>操作页面</h1>
<table>
    <tbody>
    <tr th:each="prod: ${data}">
        <td>
            <form action="/resume/upd">
                <p th:text ="${prod.id}"></p>
                <td><input type="text" th:value="${prod.id}" name="id" hidden="hidden"></td>
                <td><input type="text" th:value="${prod.name}" name="name"></td>
                <td><input type="text" th:value="${prod.address}" name="address"></td>
                <td><input type="text" th:value="${prod.phone}" name="phone"></td>
                <td><input type="submit" value="修改"></td>
            </form>
        </td>
        <td>
            <a href="resume.html" th:href="@{/resume/del(resumeId=${prod.id})}">删除</a>
        </td>
    </tr>
    </tbody>
</table>
<h1>=================分隔符===========================</h1>
<form action="/resume/upd">
    name:<input type="text" name="name"><br/>
    address:<input type="text" name="address"><br/>
    phone:<input type="text" name="phone"><br/>
    <input type="submit" value="添加"><br/>
</form>

</body>
</html>
